package com.cskaoyan.service;

import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.domain.MarketBrand;
import com.cskaoyan.domain.MarketBrandExample;
import com.cskaoyan.mapper.MarketBrandMapper;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;


@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    MarketBrandMapper brandMapper;

    @Override
    public List<MarketBrand> getList() {



        //获取list
        MarketBrandExample example = new MarketBrandExample();
        List<MarketBrand> brand = brandMapper.selectByExampleSelective(example);


        return brand;
    }

    @Override
    public MarketBrand getDetail(Integer id) {
        return brandMapper.selectByPrimaryKey(id);
    }
}
